﻿Imports System.Data
Imports System.Data.Odbc
Imports WSEntidades
Public Class TraspasosbFact
    Public Shared Function Build(ByVal dr As OdbcDataReader) As TraspasosbBE
        Dim tmpTraspasosb As TraspasosbBE = New TraspasosbBE()
        Try
            With tmpTraspasosb
                .Conciliado = convertDTFromDb.ConvertShort(dr.Item("Conciliado"))
                .FCancela = convertDTFromDb.convertDateTime(dr.Item("FCancela"))
                .FechaApl = convertDTFromDb.convertDateTime(dr.Item("FechaApl"))
                .FechaC = convertDTFromDb.convertDateTime(dr.Item("FechaC"))
                .IdCtaD = convertDTFromDb.ConvertShort(dr.Item("IdCtaD"))
                .IdCtaO = convertDTFromDb.ConvertShort(dr.Item("IdCtaO"))
                .IdEmpresa = convertDTFromDb.ConvertShort(dr.Item("IdEmpresa"))
                .IdTraspaso = convertDTFromDb.convertInt32(dr.Item("IdTraspaso"))
                .Importe = convertDTFromDb.ConvertDecimal(dr.Item("Importe"))
                .Letra = convertDTFromDb.ConvertString(dr.Item("Letra"))
                .Obs = convertDTFromDb.ConvertString(dr.Item("Obs"))
                .Status = convertDTFromDb.ConvertString(dr.Item("Status"))
                .Usr = convertDTFromDb.ConvertString(dr.Item("Usr"))
                .UsrCancela = convertDTFromDb.ConvertString(dr.Item("UsrCancela"))
            End With
            Return tmpTraspasosb
        Catch ex As Exception
            Throw
        Finally
            tmpTraspasosb = Nothing
        End Try
    End Function
End Class
